package com.ruoyi.system.service;

import java.util.List;

import com.ruoyi.system.domain.CommunityReport;
import com.ruoyi.system.domain.dto.CommunityReportDTO;
import com.ruoyi.system.domain.vo.CommunityReportVo;

/**
 * reportService接口
 *
 * @author ruoyi
 * @date 2024-03-26
 */
public interface ICommunityReportService {
    /**
     * 查询report
     *
     * @param reportId report主键
     * @return report
     */
    public List<CommunityReport> selectCommunityReportByReportId(Long reportId);

    /**
     * 查询report列表
     *
     * @param communityReport report
     * @return report集合
     */
    public List<CommunityReport> selectCommunityReportList(CommunityReport communityReport);

    /**
     * 新增report
     *
     * @param communityReport report
     * @return 结果
     */
    public int insertCommunityReport(CommunityReport communityReport);


    /**
     * 修改report
     *
     * @param communityReport report
     * @return 结果
     */
    public int updateCommunityReport(CommunityReport communityReport);

    /**
     * 修改维修工
     *
     * @return 结果
     */
    public int updateCommunityReportUserId(CommunityReportDTO communityReportDto);


    /**
     * 将状态改为完成
     *
     * @param communityReportDtO 报修传输对象
     * @return 结果
     */
    public int updateCommunityReportFinish(CommunityReportDTO communityReportDtO);

    /**
     * 批量删除report
     *
     * @param reportIds 需要删除的report主键集合
     * @return 结果
     */
    public int deleteCommunityReportByReportIds(Long[] reportIds);

    /**
     * 删除report信息
     *
     * @param reportId report主键
     * @return 结果
     */
    public int deleteCommunityReportByReportId(Long reportId);
}
